import { request } from '@/api/service'
export const urlPrefix = '/api/dataStatistics/'
import setting from '@/setting.js';
// 访问urlPrefix_local常量
const urlPrefix_local = setting.urlPrefix_local;

/**
 * 列表查询
 */
export function defectDataGetList(query) {
    // query.page = 3
    // query.limit = 999
    return request({
        url: urlPrefix + 'defectForm',
        method: 'get',
        params: query
    })
}
export function defectDataFilterGetList(query) {
    // query.page = 3
    // query.limit = 999
    return request({
        url: urlPrefix + 'defectDataFilter',
        method: 'get',
        params: query
    })
}

// 根据订单号查批号卷号
export function defectByBatchnum(query) {
    return request({
        url: urlPrefix + 'defectByBatchnum',
        method: 'get',
        params: query
    })
}

// 根据时间范围查询单号
export function defectTimeFilter(query) {
    return request({
        url: urlPrefix + 'defectTimeFilter',
        method: 'get',
        params: query
    })
}
